package cn.kgc.tangcco.anyang.aop.g_jdbc;

import org.springframework.jdbc.core.JdbcTemplate;

public class UserDaoImpl implements UserDao {
	private JdbcTemplate jdbcTemplate;

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	@Override
	public void insertClazz() {
		String sql = "insert into clazz (name) values ('软件21班')";
		jdbcTemplate.execute(sql);
	}

}
